import Vue from 'vue'
import App from './App.vue'
import router from './router'
require('normalize.css')
require('../public/css/common.css')
import axios from 'axios'
import {
  Form,
  FormItem,
  Input,
  Container,
  Row,
  Col,
  Select,
  Option,
  Button,
  Message,
} from 'element-ui';

// axios.defaults.baseURL = 'localhost:3000'
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.config.productionTip = false
Vue.prototype.$message = Message
Vue.prototype.$http = axios;

Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Container)
Vue.use(Row)
Vue.use(Col)
Vue.use(Select)
Vue.use(Option)
Vue.use(Button)
Vue.use(Message)


new Vue({
  router,
  render: h => h(App)
}).$mount('#app')